const https = require('https');
const header = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.3'
};
const target_url = 'https://store.line.me/stickershop/product/14308849/zh-Hans';


https.get('https://www.baidu.com/', function (res) {
    //接收内容
    let data = '';
    res.setEncoding('utf8');
    res.on('data', function (chunk) {
        data += chunk;
    });
    res.on('end', function () {
        //加载完毕后获取内容
        console.log(data)
    });
});